package com.core.life.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.core.common.dao.BaseDaoImpl;
import com.core.life.dao.IImageDao;
import com.core.life.entity.ImageEntity;

@Repository
public class ImageDaoImpl extends BaseDaoImpl<ImageEntity>
implements IImageDao{

	@Override
	public void deleteByConsumeCountIds(List<Long> consumeRecordIds){
		String hql = "delete from ImageEntity img where img.consumeRecordId in(:consumeRecordIds)";
		this.getSession().createQuery(hql).setParameterList("consumeRecordIds", consumeRecordIds).executeUpdate();
	}

}
